<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
  <h1><?php echo $heading_title; ?></h1>
  <p><?php echo $text_total; ?><b> <?php echo $total; ?></b>.</p>
   <?php if($bills) { ?>
  <table class="list">
    <thead>
      <tr>
        <td class="left"><?php echo $customerbills; ?></td>
        <td class="left"><?php echo $customerdate_enter; ?></td>
        <td class="right"><?php echo $column_amount; ?></td>
        <td class="right"><?php echo $billsdetailed; ?></td>
      </tr>
    </thead>
    <tbody>      
       <?php foreach ($bills as $bill) { ?>
             <tr>
            <td><?php echo $bill['bill']?></td>   
            <td><?php echo $bill['date_entered']?></td>   
            <td><?php echo $bill['customertamount'] ?></td>   
            <td class="center"><?php foreach ($bill['detailed'] as $detailed) { ?>
                 <a href="<?php echo $detailed['href']; ?>">Xem</a> 
                <?php } ?></td>           
            <?php }  ?>
    </tbody>
  </table>
   <?php } else { ?>
   <p>Bạn Không có hóa đơn nào</p>
   <?php } ?>
  <div class="pagination"><?php echo $pagination; ?></div>
  <div class="buttons">
    <div class="right"><a href="<?php echo $continue; ?>" class="button"><span><?php echo $button_continue; ?></span></a></div>
  </div>
  <?php echo $content_bottom; ?></div>
<?php echo $footer; ?>